package com.example.course.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 题库视图对象
 *
 * @author Jasmine-drs
 * @date 2025-04-22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "TopicVO", description = "题库视图对象")
public class TopicVO {

	@ApiModelProperty("主键")
	private Integer id;

	@ApiModelProperty("题目")
	private String title;

	@ApiModelProperty("题目类型，0单选题，1填空题...")
	private Integer type;

	@ApiModelProperty("题目类型文本")
	private String typeText;

	@ApiModelProperty("选项1")
	private String topicA;

	@ApiModelProperty("选项2")
	private String topicB;

	@ApiModelProperty("选项3")
	private String topicC;

	@ApiModelProperty("选项4")
	private String topicD;

	@ApiModelProperty("答案")
	private String answer;

	@ApiModelProperty("创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createTime;
} 